package cn.smbms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.pojo.User;

public interface UserDao {
	public List<User> UserList(@Param("name")String name,@Param("role")Integer role,@Param("index")int index);
	public User login(@Param("code")String code,@Param("pwd")String pwd);
	public User userCode(String code);
	public Integer getCount(@Param("name")String name,@Param("role")Integer role);
	public int useradd(User user);
	public int userUp(User user);
	public User getById(String id);
	public int pwdUp(@Param("code")String code,@Param("pwd")String pwd);
	public int delById(String id);
}
